home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / trueSpace 7.6 / tS761B8Std.exe / {app} / Scripts / ScriptCommands / onnewscene.xml < prev   
Extensible Markup Language  |  2008-06-10  |  873b  |  21 lines

  1. <?xml version="1.0" encoding="utf-8" ?> 
  2. <SCRIPT Name="OnNewScene" Type="command" Description="on new scene cmd" GUID = "{D8E2CC8D-9AA7-43c6-83E0-F68C42498AD7}">
  3.     <SCRIPT_CODE><![CDATA[
  4. /*
  5.     This command is called after new scene is created.
  6.     Add custom initialization code here
  7. */
  8. function Execute(ret)
  9. {
  10.     rosDir = System.GetMainDir();
  11.     var sceneRoot = Space.CurrentScene();
  12.     
  13.     RsFileIO.LoadObject( rosDir + '\\scripts\\preObjects\\light01.rsobj', sceneRoot);
  14.     RsFileIO.LoadObject( rosDir + '\\scripts\\preObjects\\light02.rsobj', sceneRoot);
  15.     RsFileIO.LoadObject( rosDir + '\\scripts\\preObjects\\light03.rsobj', sceneRoot);
  16.     RsFileIO.LoadObject( rosDir + '\\scripts\\preObjects\\light04.rsobj', sceneRoot);
  17.     RsFileIO.LoadObject( rosDir + '\\scripts\\preObjects\\Camera1.rsobj', sceneRoot);
  18. }
  19.     ]]></SCRIPT_CODE>
  20. </SCRIPT>
  21.